//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#ifndef __PACKAGE_MANAGER_H__
#define __PACKAGE_MANAGER_H__

#include "ChannelData.h"

//Package transmission
EXTERN_C C_INT CreatePkgManager();
EXTERN_C C_VOID DelPkgManager();
EXTERN_C C_INT SendChannelData(ChannelData *pkg);
EXTERN_C C_INT SendOutChannelData(ChannelData *pkg, bool bBlock);
EXTERN_C ChannelData* ReceiveChannelData(int *err);
EXTERN_C CommunicationObject *FindObjByChannelNumber(list *pList,
        C_UINT channelNumber, C_LOCK lock);

#endif // __PACKAGE_MANAGER_H__
